#!/bin/env python3

"""
using requests to get the content on the online page.
"""
import requests


def get_content():
    url = "http://www.4j4j.cn/"
    resp = requests.get(url=url)
    print(resp.encoding)
    print(resp.url)
   # print(resp.content.decode("utf-8"))
    print(resp.text)

get_content()
